<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
    <meta http-equiv="Content-Language" content="fr_FR">
	<title>{$name}┊{$site_name}</title>
    <meta name="author" content="Powerless"> 
    <meta name="Copyright" content="{$site_seo_title}">
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">   
<link rel="icon" href="__TMPL__Public/images/favicon.ico" type="image/ico">
<link href="__TMPL__Public/style/base.css" rel="stylesheet" type="text/css">
<link href="__TMPL__Public/style/commerce.css" rel="stylesheet" type="text/css"/>
<script src="__TMPL__Public/js/jquery-1.7.2.min.js" language="javascript" type="text/javascript"></script>
<script src="__TMPL__Public/js/jQuery-jcSlider.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
<!-- 
$(function(){
    $("#demo1").jcSlider({
		loadPath:'img/loading.gif'	
	});
});
-->
</script>
        <script type="text/javascript" language="javascript">  
        function nofind(){
        var img=event.srcElement;
        img.src="__TMPL__Public/img/no-img.jpg";
        img.onerror=null; 
        }
        </script>
</head>
<body>
<!--header banner start-->
<div id="headbannerbg">
    <ul>
    
		<php>
            $commerce_t=sp_getslide('commerce_t');
        </php>
        <foreach name="commerce_t" item="t"><php>break;</php></foreach>        
      <li><img onerror="nofind();" src="{$site_host}data/upload/{$t.slide_pic}" width="960" height="100"/><li>
    </ul>
</div>
<!--header banner end-->
<!--header nav start-->
<div id="navbg">
	<ul>
		<li><a href="{:u('list/index',array('id'=>141))}">Sci-Tech</a></li>
		<li><a href="{:u('list/index',array('id'=>142))}">IT et Web</a></li>
		<li><a href="{:u('list/index',array('id'=>143))}">Espace</a></li>
		<li><a href="{:u('list/index',array('id'=>144))}">Ecologique</a></li>
	</ul>
</div>
<!--header nav end-->
<!--js start-->
<div id="demo1" class="jcSlider">
    <ul class="imgList">
    <php>
    $commerce_all=sp_sql_posts('cid:141,142,143,144;field:tid,smeta;limit:6;order:post_date desc');
    </php>
     <foreach name="commerce_all" item="all">
    <php>
    $smeta=json_decode($all['smeta'],true);
    </php>
    <li><a href="{:U('article/index',array('id'=>$all['tid']))}">
     <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="150" height="85"></a></li>
    </foreach>
    </ul>
</div>
<!--js end-->
<!--column start-->
<div id="columnbg">
	<div class="leftcolumnbg">
		    <div class="leftsidebar"><a href="{:u('list/index',array('id'=>141))}"><h3>Sci-Tech</h3></a></div>
            
    <php>
    $importations_all=sp_sql_posts('cid:141;field:tid,post_title,smeta;limit:4;order:post_date desc');
    </php>
     <foreach name="importations_all" item="all">
    <php>
    $smeta=json_decode($all['smeta'],true);
    </php>
     <ul>
		   <span><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="50" height="45" /></span>
		   <li><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></li>
		</ul>
    </foreach>
	</div>
	<div class="middlecolumnbg">
		<ul>
         <php>
    $information_all=sp_sql_posts('cid:142;field:tid,post_title;limit:5;order:post_date desc');
    </php>
     <foreach name="information_all" item="all">
		   <li><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></li>
    </foreach>
		</ul>
	</div>
	<div class="rightcolumnbg">
		    <div class="rightsidebar"><a href="{:u('list/index',array('id'=>143))}"><h3>Espace</h3></a></div>
     <php>
    $exportations_all=sp_sql_posts('cid:143;field:tid,post_title,smeta;limit:6;order:post_date desc');
    </php>
     <foreach name="exportations_all" item="all">
    <php>
    $smeta=json_decode($all['smeta'],true);
    </php>
     <ul>
		   <span><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="50" height="45" /></span>
		   <li><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></li>
		</ul>
    </foreach>
	</div>
</div>
<!--column end-->
<!--content graphic start-->
<div id="contentgpicbg">
 <php>
    $commerce_all=sp_sql_posts('cid:141,142,143,144;field:tid,post_title,smeta;limit:10;order:post_date desc');
    $a = 0;
    </php>
     <foreach name="commerce_all" item="all">
    <php>
    $smeta=json_decode($all['smeta'],true);
    $a++;
    if($a > 6){
    </php>
        <ul>
	    <div><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="211" height="134" /></div>
		<li><a href="{:U('article/index',array('id'=>$all['tid']))}"><h4>{$all.post_title}</h4></a></li>
	</ul>
    <php> } </php>
    </foreach>
</div>
<!--content graphic end-->
<!--main start-->
<div id="newsbg">
	 <div class="sidenav"><h3>Sci-Tech</h3></div>
      <php>
    $imp_exp_all=sp_sql_posts('cid:141;field:tid,post_title,post_excerpt,smeta;limit:12;order:post_date desc');
    </php>
     <foreach name="imp_exp_all" item="all">
    <php>
    $smeta=json_decode($all['smeta'],true);
    </php>
        <ul>
	    <div><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="140" height="96" /></div>
		<li><a href="{:U('article/index',array('id'=>$all['tid']))}"><h4>{$all.post_title}</h4>{$all.post_excerpt}</a></li>
	</ul>
    </foreach>

</div>
<div id="twonewsbg">
	<div class="newsnavbg"><a href="{:u('list/index',array('id'=>143))}"><h3>Espace</h3></a></div>
    <php>
    $politique_all=sp_sql_posts('cid:143;field:tid,post_title,post_excerpt,smeta;limit:5;order:post_date desc');
    </php>
     <foreach name="politique_all" item="all">
    <php>
    $smeta=json_decode($all['smeta'],true);
    </php>
        <ul>
	    <div><img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="180" height="100" /></div>
		<li><a href="{:U('article/index',array('id'=>$all['tid']))}"><h4>{$all.post_title}</h4>{$all.post_excerpt}</a></li>
	</ul>
    </foreach>
</div>
<!--main end-->
  <include file="Public:footer" />
</body>
</html>
